Skip to content

T3.2–T3.6: Weekly view — navigation, dish management, and frequency chips#6

Merged
Marcogn merged 3 commits into
mainfrom
copilot/t01-meal-planner-implementation
May 4, 2026
Merged

T3.2–T3.6: Weekly view — navigation, dish management, and frequency chips#6
Marcogn merged 3 commits into
mainfrom
copilot/t01-meal-planner-implementation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

Completes the weekly planning UI: users can now navigate weeks, add/edit/remove dishes per slot, and see real-time element frequency usage with over-limit highlighting.

WeekView.vue

  • T3.2 — Week label uses formatWeekLabel()"Settimana del lun 04/05"; "Oggi" button shown only when off the current week
  • T3.3 — Empty slot: centered + (keyboard accessible); occupied slot: dish cards with name + element chips
  • T3.5 — ✏️ / 🗑️ per dish card; delete calls removeDishFromSlot + refresh()
  • T3.6computeWeeklyFrequencies as a reactive computed; chips show nome (n/max) for finite limits or nome for ∞; .chip--exceeded → red
  • slotsMap computed (Map<"day-meal", Dish[]>) replaces repeated per-render lookups in the template

FormAggiuntaPiatto.vue (new)

  • T3.4 — Modal for add/edit: free-text dish name + scrollable checkbox list of Elements with live text filter
  • Edit mode: removeDishFromSlotaddDishToSlot (replace in place) → settimanaStore.refresh()
  • Overlay closes on backdrop click or Escape; max-height: 90vh fallback before dvh; emoji buttons wrapped with aria-hidden

Copilot AI and others added 3 commits May 4, 2026 12:40
…onali in localStorage

Agent-Logs-Url: https://github.com/Marcogn/menu-planner/sessions/036f5c06-d774-41d0-95e5-8a03e4065daa

Co-authored-by: Marcogn <54799180+Marcogn@users.noreply.github.com>
…pe key on modal, dvh fallback

Agent-Logs-Url: https://github.com/Marcogn/menu-planner/sessions/a3d86001-a711-4e9f-be69-1b9d0ec841a4

Co-authored-by: Marcogn <54799180+Marcogn@users.noreply.github.com>
@Marcogn Marcogn marked this pull request as ready for review May 4, 2026 13:29
@Marcogn Marcogn merged commit 1423218 into main May 4, 2026
1 check passed
@Marcogn Marcogn deleted the copilot/t01-meal-planner-implementation branch May 4, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants